package cn.geoportal.benoserver.entity;

import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 转换任务表
 * @TableName t_convert_task
 */
@TableName(value ="t_convert_task")
@Data
public class ConvertTask implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JSONField(ordinal = 0)
    @ApiModelProperty(value = "id", required = false, hidden = true)
    private Integer id;

    /**
     * 转换任务名称
     */
    @TableField(value = "name")
    @JSONField(ordinal = 1)
    @ApiModelProperty(value = "name", position = 1)
    private String name;

    /**
     * 转换任务的描述
     */
    @TableField(value = "description")
    @JSONField(ordinal = 2)
    @ApiModelProperty(value = "description", position = 2)
    private String description;

    /**
     * 转换任务的类型
     */
    @TableField(value = "typeid")
    @JSONField(ordinal = 3)
    @ApiModelProperty(value = "typeid", position = 3)
    private Integer typeid;

    /**
     * 转换任务名称
     */
    @ApiModelProperty(value = "typename", hidden = true)
    @JSONField(ordinal = 4)
    @TableField(exist = false)
    @ExcelEntity(name = "typename")
    private String typename;

    /**
     * CIM源文件夹
     */
    @TableField(value = "source")
    @JSONField(ordinal = 5)
    @ApiModelProperty(value = "source", position = 5)
    private String source;

    /**
     * CIM目标文件夹
     */
    @TableField(value = "target")
    @JSONField(ordinal = 6)
    @ApiModelProperty(value = "target", position = 6)
    private String target;

    /**
     * CIM数据使用的EPSG
     */
    @TableField(value = "epsg")
    @JSONField(ordinal = 7)
    @ApiModelProperty(value = "epsg", position = 7)
    private String epsg;

    /**
     * CIM数据的中心点
     */
    @TableField(value = "center")
    @JSONField(ordinal = 8)
    @ApiModelProperty(value = "center", position = 8)
    private String center;

    /**
     * 任务状态
     */
    @TableField(value = "status")
    @JSONField(ordinal = 8)
    @ApiModelProperty(value = "任务状态", position = 9)
    private String status;

    /**
     * 任务状态
     */
    @JSONField(ordinal = 9)
    @ApiModelProperty(value = "任务状态名称", position = 9)
    private String statusName;

    /**
     * 数据新建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JSONField(ordinal = 15)
    @ApiModelProperty(value = "创建时间", required = false, hidden = true)
    private Date createdat;

    /**
     * 数据更新时间
     */
    @TableField(value = "updatedat", fill = FieldFill.INSERT_UPDATE)
    @JSONField(ordinal = 16)
    @ApiModelProperty(value = "更新时间", required = false, hidden = true)
    private Date updatedat;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}